﻿                          
   using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using KDS.Mes.Mes.SeqJits;

namespace KDS.Mes.Mes.SeqJits.EntityMapper.SeqJits
{

	/// <summary>
    /// 用于JIT生产的序列信息表的数据配置文件
    /// </summary>
    public class SeqJitCfg : EntityTypeConfiguration<SeqJit>
    {
		/// <summary>
        ///  构造方法[默认链接字符串< see cref = "MesDbContext" /> ]
        /// </summary>
		public SeqJitCfg ()
		{
		            ToTable("SeqJit", MesConsts.SchemaName.Basic);
 
      //todo: 需要将以下文件注入到MesDbContext中

  //		public IDbSet<SeqJit> SeqJits { get; set; }
   //		 modelBuilder.Configurations.Add(new SeqJitCfg());




		    // 计划日期
			Property(a => a.WORK_DATE).HasMaxLength(20);
		    // 仓库代码
			Property(a => a.wh_area_id).HasMaxLength(20);
		    // ALC_CD
			Property(a => a.ALC_CD).HasMaxLength(20);
		    // SEQ_NO
			Property(a => a.SEQ_NO).HasMaxLength(20);
		    // BODY_NO
			Property(a => a.BODY_NO).HasMaxLength(20);
		    // TRIM_DATA
			Property(a => a.TRIM_DATA).HasMaxLength(400);
		    // IF_FLAG
			Property(a => a.IF_FLAG).HasMaxLength(1);
		}
    }
}